package com.weizhong.update.model;

import java.util.ArrayList;
import java.util.List;

public class AppServerEntity{
	//resultCode:1
	private int resultCode;
	
	private String resultMsg;
	
	//安装模式 (1=开机安装,2=强制安装,3=提醒安装[使用时])
	private int installMode;
	
	//最近更新时间
	private long lastUpdateTime;
	
	//appEntity list
	List<AppEntity> appList =  new ArrayList<AppEntity>();
	
	/**
	 * 添加appEntity
	 * @param appEntity
	 */
	public void addApp(AppEntity appEntity) {
		appList.add(appEntity);
	}

	/**
	 * 获取 applist
	 * @return
	 */
	public List<AppEntity> getAppList() {
		// TODO Auto-generated method stub
		return appList;
	}

	public void setAppList(List<AppEntity> appEntities) {
		appList = appEntities;
	}
	public int getResultCode() {
		return resultCode;
	}

	public void setResultCode(int resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public int getInstallMode() {
		return installMode;
	}

	public void setInstallMode(int installMode) {
		this.installMode = installMode;
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
}
